<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: wb32l003_i2c.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_5ec8cccc32fa528457f3b4ed28e1a2cf.html">WB32L003_StdPeriph_Driver</a></li><li class="navelem"><a class="el" href="dir_cb9a941ec225bfb9bad4e8246158e282.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">wb32l003_i2c.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="wb32l003__i2c_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">/* Define to prevent recursive inclusion -------------------------------------*/</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#ifndef __WB32L003_I2C_H</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#define __WB32L003_I2C_H</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">/* Includes ------------------------------------------------------------------*/</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;wb32l003.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">/* Exported types ------------------------------------------------------------*/</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="struct_i2_c___init_type_def.html">   34</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;{</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="struct_i2_c___init_type_def.html#a8ca57858382d3b202e576b3d25628b41">   36</a></span>&#160;  uint32_t <a class="code" href="struct_i2_c___init_type_def.html#a8ca57858382d3b202e576b3d25628b41">master</a>;            </div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="struct_i2_c___init_type_def.html#a3ecf27a911a4f544415a4fefbe5f9103">   39</a></span>&#160;  uint32_t <a class="code" href="struct_i2_c___init_type_def.html#a3ecf27a911a4f544415a4fefbe5f9103">slave</a>;             </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="struct_i2_c___init_type_def.html#ad505664bb31819abdd085f48d61d6356">   42</a></span>&#160;  uint32_t <a class="code" href="struct_i2_c___init_type_def.html#ad505664bb31819abdd085f48d61d6356">slaveAddr</a>;         </div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="struct_i2_c___init_type_def.html#ae4476124cfe53779bcb61149a13101af">   44</a></span>&#160;  uint32_t <a class="code" href="struct_i2_c___init_type_def.html#ae4476124cfe53779bcb61149a13101af">speedclock</a>;        </div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="struct_i2_c___init_type_def.html#af1ade0e61c69c0cf36a9ba5fb0d24ed6">   46</a></span>&#160;  uint32_t <a class="code" href="struct_i2_c___init_type_def.html#af1ade0e61c69c0cf36a9ba5fb0d24ed6">broadack</a>;          </div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;} <a class="code" href="struct_i2_c___init_type_def.html">I2C_InitTypeDef</a>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="group___i2_c.html#ga9bec282875cd65e00172e875ef785bec">   54</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> </div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;{</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="group___i2_c.html#gga9bec282875cd65e00172e875ef785beca2e4932a1868432bff23103fac0127fdc">   56</a></span>&#160;  <a class="code" href="group___i2_c.html#gga9bec282875cd65e00172e875ef785beca2e4932a1868432bff23103fac0127fdc">I2C_ERROR</a>   = 0, </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="group___i2_c.html#gga9bec282875cd65e00172e875ef785becaeceba296bdda2b90e8835c431fe7a72a">   57</a></span>&#160;  <a class="code" href="group___i2_c.html#gga9bec282875cd65e00172e875ef785becaeceba296bdda2b90e8835c431fe7a72a">I2C_OK</a>      = 1, </div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="group___i2_c.html#gga9bec282875cd65e00172e875ef785beca955ff83770f8200a0d50d7d69f8b2d06">   58</a></span>&#160;  <a class="code" href="group___i2_c.html#gga9bec282875cd65e00172e875ef785beca955ff83770f8200a0d50d7d69f8b2d06">I2C_SUCCESS</a> = 2, </div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="group___i2_c.html#gga9bec282875cd65e00172e875ef785beca6eba163b622f80d7175b01bef979b24a">   59</a></span>&#160;  <a class="code" href="group___i2_c.html#gga9bec282875cd65e00172e875ef785beca6eba163b622f80d7175b01bef979b24a">I2C_WAITING</a> = 3  </div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;} <a class="code" href="group___i2_c.html#ga9bec282875cd65e00172e875ef785bec">I2CStatus</a>;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment">/* Exported constants --------------------------------------------------------*/</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#define I2C_MASTER_MODE_DISABLE         ((uint32_t)0x00000000U)</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">#define I2C_MASTER_MODE_ENABLE          ((uint32_t)0x00000001U)</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">#define IS_I2C_MASTER_MODE(MASTER_MODE) ((MASTER_MODE == I2C_MASTER_MODE_DISABLE) ||\</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">                                         (MASTER_MODE == I2C_MASTER_MODE_ENABLE))</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">#define I2C_SLAVE_MODE_ENABLE         ((uint32_t)0x00000000U)</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">#define I2C_SLAVE_MODE_DISABLE        ((uint32_t)0x00000001U)</span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">#define IS_I2C_SLAVE_MODE(SLAVE_MODE) ((SLAVE_MODE == I2C_SLAVE_MODE_ENABLE) || \</span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">                                       (SLAVE_MODE == I2C_SLAVE_MODE_DISABLE))</span></div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#define I2C_BROAD_ACK_ENABLE          ((uint32_t)0x00000000U)</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor">#define I2C_BROAD_ACK_DISABLE         ((uint32_t)0x00000001U)</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor">#define IS_I2C_BROAD_ACK(BROAD_ACK)   ((BROAD_ACK == I2C_BROAD_ACK_ENABLE) ||\</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="preprocessor">                                       (BROAD_ACK == I2C_BROAD_ACK_DISABLE))</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor">#define I2C_HIGH_RATE_ENABLE          ((uint32_t)0x00000000U)</span></div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">#define I2C_HIGH_RATE_DISABLE         I2C_CR_H1M</span></div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor">#define I2C_Direction_Transmitter       ((uint8_t)0x00)</span></div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">#define I2C_Direction_Receiver          ((uint8_t)0x01)</span></div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor">#define IS_I2C_DIRECTION(I2C_Direction) ((I2C_Direction == I2C_Direction_Transmitter) || \</span></div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">                                         (I2C_Direction == I2C_Direction_Receiver))</span></div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="preprocessor">#define I2C_FLAG_ERROR_UNDER          ((uint32_t)0x00000000U)</span></div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">#define I2C_FLAG_USELESS              ((uint32_t)0x000000F8U)</span></div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_TX_START      ((uint32_t)0x00000008U)</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_TX_RESTART    ((uint32_t)0x00000010U)</span></div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_TX_SLAW_ACK   ((uint32_t)0x00000018U)</span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_TX_SLAW_NOACK ((uint32_t)0x00000020U)</span></div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_TX_DATA_ACK   ((uint32_t)0x00000028U)</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_TX_DATA_NOACK ((uint32_t)0x00000030U)</span></div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_TX_LOST_SCL   ((uint32_t)0x00000038U)</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_RX_START      ((uint32_t)0x00000008U)</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_RX_RESTART    ((uint32_t)0x00000010U)</span></div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_RX_SLAW_ACK   ((uint32_t)0x00000040U)</span></div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_RX_SLAW_NOACK ((uint32_t)0x00000048U)</span></div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_RX_DATA_ACK   ((uint32_t)0x00000050U)</span></div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_RX_DATA_NOACK ((uint32_t)0x00000058U)</span></div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="preprocessor">#define I2C_FLAG_MASTER_RX_LOST_SCL   ((uint32_t)0x00000038U)</span></div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_TX_SLAW_ACK    ((uint32_t)0x000000A8U)</span></div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_TX_DATA_ACK    ((uint32_t)0x000000B8U)</span></div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_TX_DATA_NOACK  ((uint32_t)0x000000C0U)</span></div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_TX_DATA_LAST   ((uint32_t)0x000000C8U)</span></div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_TX_LOST_SCL    ((uint32_t)0x000000B0U)</span></div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_RX_SLAW_ACK    ((uint32_t)0x00000060U)</span></div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_RX_BROAD_ACK   ((uint32_t)0x00000070U)</span></div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_RX_SDATA_ACK   ((uint32_t)0x00000080U)</span></div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_RX_SDATA_NOACK ((uint32_t)0x00000088U)</span></div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_RX_BDATA_ACK   ((uint32_t)0x00000090U)</span></div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_RX_BDATA_NOACK ((uint32_t)0x00000098U)</span></div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_RX_SA_LOST_SCL ((uint32_t)0x00000068U)</span></div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_RX_BA_LOST_SCL ((uint32_t)0x00000078U)</span></div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="preprocessor">#define I2C_FLAG_SLAVE_STOP_RESTART   ((uint32_t)0x000000A0U)</span></div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="comment">/* Exported macro ------------------------------------------------------------*/</span></div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="comment">/* Exported functions --------------------------------------------------------*/</span></div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i2_c.html#ga475ebf7c2c0f64e9631fb1ed82d6bb32">I2C_DeInit</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i2_c.html#ga1b5cee4c873630ae2d38c5301ce6dfef">I2C_Init</a>(<a class="code" href="struct_i2_c___init_type_def.html">I2C_InitTypeDef</a> *I2C_InitStruct);</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i2_c.html#ga9cc0585acf034965b8e1bd7e6564a9d0">I2C_SlaveAddressConfig</a>(uint32_t SlaveAddress);</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i2_c.html#ga3764b44c393d3142ff528b3777367181">I2C_HighSpeedModeCmd</a>(FunctionalState NewState);</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i2_c.html#ga273ed4a9322317b6167a351c5d9c22a6">I2C_Start</a>(FunctionalState NewState);</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i2_c.html#ga967813684e605713eadf012bacb3d6b5">I2C_Stop</a>(FunctionalState NewState);</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i2_c.html#ga51127006ab0941f6cc9b1d4fe77b06c8">I2C_ACK</a>(FunctionalState NewState);</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i2_c.html#gae696416c6624783e6f3240742a1a474f">I2C_Cmd</a>(FunctionalState NewState);</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i2_c.html#gac8fd48b27115ed75fad89fc467c0fc4c">I2C_AckGeneralCallCmd</a>(FunctionalState NewState);</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i2_c.html#ga13a1acbae3361144dcd5c222987f3569">I2C_ReceiveByte</a>(uint8_t *pData);</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i2_c.html#gaae912ddb3e54a26e4ec17e35e8ee1858">I2C_WriteByte</a>(uint8_t I2C_DataCmd);</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i2_c.html#ga9bfdf853316172ce00fd5745847c83c9">I2C_WriteAddress</a>(uint8_t Address, uint8_t I2C_Direction);</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<a class="code" href="group___i2_c.html#ga9bec282875cd65e00172e875ef785bec">I2CStatus</a> <a class="code" href="group___i2_c.html#ga65c074c0c585882e5f469f49c98f1bac">I2C_CheckFlag</a>(uint32_t *I2C_Flag);</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;ITStatus <a class="code" href="group___i2_c.html#ga969097bd9d6c5dc41289093f4af6526c">I2C_GetITStatus</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___i2_c.html#ga92a27b9faaa5d38b47971b39e43a9411">I2C_ClearITPendingBit</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;}</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* __WB32L003_I2C_H */</span><span class="preprocessor"></span></div><div class="ttc" id="group___i2_c_html_gga9bec282875cd65e00172e875ef785becaeceba296bdda2b90e8835c431fe7a72a"><div class="ttname"><a href="group___i2_c.html#gga9bec282875cd65e00172e875ef785becaeceba296bdda2b90e8835c431fe7a72a">I2C_OK</a></div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.h:57</div></div>
<div class="ttc" id="group___i2_c_html_ga13a1acbae3361144dcd5c222987f3569"><div class="ttname"><a href="group___i2_c.html#ga13a1acbae3361144dcd5c222987f3569">I2C_ReceiveByte</a></div><div class="ttdeci">void I2C_ReceiveByte(uint8_t *pData)</div><div class="ttdoc">Reads data from data register.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:240</div></div>
<div class="ttc" id="group___i2_c_html_gga9bec282875cd65e00172e875ef785beca6eba163b622f80d7175b01bef979b24a"><div class="ttname"><a href="group___i2_c.html#gga9bec282875cd65e00172e875ef785beca6eba163b622f80d7175b01bef979b24a">I2C_WAITING</a></div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.h:59</div></div>
<div class="ttc" id="struct_i2_c___init_type_def_html_a3ecf27a911a4f544415a4fefbe5f9103"><div class="ttname"><a href="struct_i2_c___init_type_def.html#a3ecf27a911a4f544415a4fefbe5f9103">I2C_InitTypeDef::slave</a></div><div class="ttdeci">uint32_t slave</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.h:39</div></div>
<div class="ttc" id="group___i2_c_html_ga9bfdf853316172ce00fd5745847c83c9"><div class="ttname"><a href="group___i2_c.html#ga9bfdf853316172ce00fd5745847c83c9">I2C_WriteAddress</a></div><div class="ttdeci">void I2C_WriteAddress(uint8_t Address, uint8_t I2C_Direction)</div><div class="ttdoc">Write the slave address byte by the direction.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:265</div></div>
<div class="ttc" id="struct_i2_c___init_type_def_html_ae4476124cfe53779bcb61149a13101af"><div class="ttname"><a href="struct_i2_c___init_type_def.html#ae4476124cfe53779bcb61149a13101af">I2C_InitTypeDef::speedclock</a></div><div class="ttdeci">uint32_t speedclock</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.h:44</div></div>
<div class="ttc" id="group___i2_c_html_ga3764b44c393d3142ff528b3777367181"><div class="ttname"><a href="group___i2_c.html#ga3764b44c393d3142ff528b3777367181">I2C_HighSpeedModeCmd</a></div><div class="ttdeci">void I2C_HighSpeedModeCmd(FunctionalState NewState)</div><div class="ttdoc">Configures I2C high speed mode.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:114</div></div>
<div class="ttc" id="group___i2_c_html_ga969097bd9d6c5dc41289093f4af6526c"><div class="ttname"><a href="group___i2_c.html#ga969097bd9d6c5dc41289093f4af6526c">I2C_GetITStatus</a></div><div class="ttdeci">ITStatus I2C_GetITStatus(void)</div><div class="ttdoc">Checks whether I2C interrupt has occurred or not.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:312</div></div>
<div class="ttc" id="group___i2_c_html_ga475ebf7c2c0f64e9631fb1ed82d6bb32"><div class="ttname"><a href="group___i2_c.html#ga475ebf7c2c0f64e9631fb1ed82d6bb32">I2C_DeInit</a></div><div class="ttdeci">void I2C_DeInit(void)</div><div class="ttdoc">Deinitializes the I2C peripheral registers to their default reset values.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:38</div></div>
<div class="ttc" id="group___i2_c_html_gaae912ddb3e54a26e4ec17e35e8ee1858"><div class="ttname"><a href="group___i2_c.html#gaae912ddb3e54a26e4ec17e35e8ee1858">I2C_WriteByte</a></div><div class="ttdeci">void I2C_WriteByte(uint8_t I2C_DataCmd)</div><div class="ttdoc">Write one byte data.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:250</div></div>
<div class="ttc" id="group___i2_c_html_ga273ed4a9322317b6167a351c5d9c22a6"><div class="ttname"><a href="group___i2_c.html#ga273ed4a9322317b6167a351c5d9c22a6">I2C_Start</a></div><div class="ttdeci">void I2C_Start(FunctionalState NewState)</div><div class="ttdoc">Sets or clears I2C peripheral start status.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:135</div></div>
<div class="ttc" id="group___i2_c_html_ga92a27b9faaa5d38b47971b39e43a9411"><div class="ttname"><a href="group___i2_c.html#ga92a27b9faaa5d38b47971b39e43a9411">I2C_ClearITPendingBit</a></div><div class="ttdeci">void I2C_ClearITPendingBit(void)</div><div class="ttdoc">Clears I2C interrupt pending bit.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:337</div></div>
<div class="ttc" id="group___i2_c_html_ga51127006ab0941f6cc9b1d4fe77b06c8"><div class="ttname"><a href="group___i2_c.html#ga51127006ab0941f6cc9b1d4fe77b06c8">I2C_ACK</a></div><div class="ttdeci">void I2C_ACK(FunctionalState NewState)</div><div class="ttdoc">Sets or clears I2C peripheral ACK status.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:178</div></div>
<div class="ttc" id="group___i2_c_html_ga1b5cee4c873630ae2d38c5301ce6dfef"><div class="ttname"><a href="group___i2_c.html#ga1b5cee4c873630ae2d38c5301ce6dfef">I2C_Init</a></div><div class="ttdeci">void I2C_Init(I2C_InitTypeDef *I2C_InitStruct)</div><div class="ttdoc">Initializes the I2C peripheral according to the specified parameters in the I2C_InitStruct.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:50</div></div>
<div class="ttc" id="group___i2_c_html_ga9bec282875cd65e00172e875ef785bec"><div class="ttname"><a href="group___i2_c.html#ga9bec282875cd65e00172e875ef785bec">I2CStatus</a></div><div class="ttdeci">I2CStatus</div><div class="ttdoc">I2CStatus enum definition.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.h:54</div></div>
<div class="ttc" id="group___i2_c_html_ga9cc0585acf034965b8e1bd7e6564a9d0"><div class="ttname"><a href="group___i2_c.html#ga9cc0585acf034965b8e1bd7e6564a9d0">I2C_SlaveAddressConfig</a></div><div class="ttdeci">void I2C_SlaveAddressConfig(uint32_t SlaveAddress)</div><div class="ttdoc">Configures the I2C slave address.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:103</div></div>
<div class="ttc" id="group___i2_c_html_gga9bec282875cd65e00172e875ef785beca955ff83770f8200a0d50d7d69f8b2d06"><div class="ttname"><a href="group___i2_c.html#gga9bec282875cd65e00172e875ef785beca955ff83770f8200a0d50d7d69f8b2d06">I2C_SUCCESS</a></div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.h:58</div></div>
<div class="ttc" id="struct_i2_c___init_type_def_html_ad505664bb31819abdd085f48d61d6356"><div class="ttname"><a href="struct_i2_c___init_type_def.html#ad505664bb31819abdd085f48d61d6356">I2C_InitTypeDef::slaveAddr</a></div><div class="ttdeci">uint32_t slaveAddr</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.h:42</div></div>
<div class="ttc" id="group___i2_c_html_gga9bec282875cd65e00172e875ef785beca2e4932a1868432bff23103fac0127fdc"><div class="ttname"><a href="group___i2_c.html#gga9bec282875cd65e00172e875ef785beca2e4932a1868432bff23103fac0127fdc">I2C_ERROR</a></div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.h:56</div></div>
<div class="ttc" id="struct_i2_c___init_type_def_html"><div class="ttname"><a href="struct_i2_c___init_type_def.html">I2C_InitTypeDef</a></div><div class="ttdoc">I2C Initial Configuration Structure definition.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.h:34</div></div>
<div class="ttc" id="group___i2_c_html_gac8fd48b27115ed75fad89fc467c0fc4c"><div class="ttname"><a href="group___i2_c.html#gac8fd48b27115ed75fad89fc467c0fc4c">I2C_AckGeneralCallCmd</a></div><div class="ttdeci">void I2C_AckGeneralCallCmd(FunctionalState NewState)</div><div class="ttdoc">Enables or disables the general ack.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:220</div></div>
<div class="ttc" id="group___i2_c_html_gae696416c6624783e6f3240742a1a474f"><div class="ttname"><a href="group___i2_c.html#gae696416c6624783e6f3240742a1a474f">I2C_Cmd</a></div><div class="ttdeci">void I2C_Cmd(FunctionalState NewState)</div><div class="ttdoc">Enables or disables I2C peripheral.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:199</div></div>
<div class="ttc" id="group___i2_c_html_ga65c074c0c585882e5f469f49c98f1bac"><div class="ttname"><a href="group___i2_c.html#ga65c074c0c585882e5f469f49c98f1bac">I2C_CheckFlag</a></div><div class="ttdeci">I2CStatus I2C_CheckFlag(uint32_t *I2C_Flag)</div><div class="ttdoc">Gets the last I2C module status flag.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:291</div></div>
<div class="ttc" id="struct_i2_c___init_type_def_html_af1ade0e61c69c0cf36a9ba5fb0d24ed6"><div class="ttname"><a href="struct_i2_c___init_type_def.html#af1ade0e61c69c0cf36a9ba5fb0d24ed6">I2C_InitTypeDef::broadack</a></div><div class="ttdeci">uint32_t broadack</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.h:46</div></div>
<div class="ttc" id="struct_i2_c___init_type_def_html_a8ca57858382d3b202e576b3d25628b41"><div class="ttname"><a href="struct_i2_c___init_type_def.html#a8ca57858382d3b202e576b3d25628b41">I2C_InitTypeDef::master</a></div><div class="ttdeci">uint32_t master</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.h:36</div></div>
<div class="ttc" id="group___i2_c_html_ga967813684e605713eadf012bacb3d6b5"><div class="ttname"><a href="group___i2_c.html#ga967813684e605713eadf012bacb3d6b5">I2C_Stop</a></div><div class="ttdeci">void I2C_Stop(FunctionalState NewState)</div><div class="ttdoc">Sets or clears I2C peripheral stop status.</div><div class="ttdef"><b>Definition:</b> wb32l003_i2c.c:156</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
